Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Feb 6, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/20366

🧭 풀이 시간

60분

👀 체감 난이도

✏️ 문제 설명

눈덩이 N개 중에 4개를 골라서 눈사람 2개를 만드는데 눈사람 2개의 최소 높이 차를 return한다.

🔍 풀이 방법

눈덩이 N개 중에 2개를 combination으로 고르고,
투포인터를 이용해서 기존의 눈덩이 2개와 겹치지 않는 나머지 2개의 눈덩이를 선택한다.

⏳ 회고

풀이법은 간단한데, 너무 복잡하게 생각해서 시간이 꽤 걸렸다.

@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Feb 6, 2025
@ShinHeeEul ShinHeeEul merged commit f13680e into main Feb 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants